package com.demo2do.fms.admin.handler;

import java.util.List;

import com.demo2do.fms.admin.entity.vam.Department;
import com.demo2do.fms.entity.authority.User;
import com.demo2do.fms.entity.vehicle.tractor.Tractor;
import com.demo2do.fms.entity.vehicle.trailer.Trailer;

/**
 *
 * @author Ark
 *
 */
public interface VamHandler {

    /**
     * @return
     */
    public List<Department> listDepartment();
    
    /**
     * 新增用户
     * 
     * @param user
     */
    public void create(User user);
    
    /**
     * 新增总部和分区用户
     */
    public void createAdminOrBranch(User user);
    
    /**
     * 修改、删除用户
     * 
     * @param user
     */
    public void edit(User user);
    
    /**
     * 修改、删除总部和分区用户
     */
    public void editAdminOrBranch(User user);
    
    /**
     * 同步车辆code和英文车牌号
     * 
     * @param tractor
     * @param brandEnCode
     */
    public void syncVehicleCode(Tractor tractor, String brandEnCode);
    
    /**
     * @param type
     * @param tractor
     * @param trailer
     */
    public void syncVehicleStatus(String type, Tractor tractor, Trailer trailer);
    
}
